package oo.day02.practice;

public class T {
	Cell[] cells = new Cell[4];
	
	T(int row,int col) {

		cells[0] = new Cell(row,col);
		cells[1] = new Cell(row,col + 1);
		cells[2] = new Cell(row,col + 2);
		cells[3] = new Cell(row + 1,col + 1);
	}
	
	T(){
		this(0,0);
	}
	
	void drop() {
		for(int i = 0; i < cells.length; i++) {
			cells[i].row--;
		}
	}
	
	void moveLeft() {
		for(int i = 0; i < cells.length; i++) {
			cells[i].col--;
		}
	}
	
	void moveRight() {
		for(int i = 0; i < cells.length; i++) {
			cells[i].col++;
		}
	}
	
	void printCells() {
		for(int i = 0; i < cells.length; i++) {
			System.out.println(cells[i].row + "," + cells[i].col);
		}
	}
}
